import { defineComponent } from "vue";
import style from "./index.module.less";
export default defineComponent({
  name: "text-view",
  props: {
    onClick: {
      type: Function,
      default: null,
    },
  },
  setup(_, { slots, emit }) {
    return () => {
      return (
        <div
          class={["text-[#666666] text-[12px]"]}
          onClick={() => emit("click")}
        >
          {slots.default?.()}
        </div>
      );
    };
  },
});
